home *** CD-ROM | disk | FTP | other *** search
/ Windows Magazine WinPak Multimedia CD / Windows Magazine WinPak Multimedia CD.iso / shell.txt < prev    next >
Text File  |  1995-04-06  |  3KB  |  44 lines

  1. While *WINDOWS Magazine* has gone to great lengths to make sure that 
  2. this file's description of SHELL.DLL is as accurate as possible, 
  3. we do not guarantee that any or all of the functions described 
  4. will work properly on all systems all the time, and therefore offer the 
  5. advice "as-is" without warranty or guarantee as to merchantability
  6. or suitability to task. Your use of this software is at your own risk.
  7. If you aren't sure of the suitability to task of software or advice
  8. on this CD-ROM, or are uncertain about your ability to install 
  9. and operate it, seek additional advice before proceeding. 
  10. In any case, CMP Publications Inc., its employees or freelancers are 
  11. not responsible for any injury, damage or loss resulting from your 
  12. use of this disc or the information it contains.
  13.  
  14.  
  15. SHELL.DLL
  16. TO REGISTER IN WINDOWS HELP:
  17.   RegisterRoutine("shell", "ShellExecute", "USSSSi")
  18. ShellExecute(hWndApp,`open',`\\ascii\\1995\\tables\\950102.doc',`',`',3).  
  19.  
  20. The first parameter is supposed to be a Window Handle.
  21.  
  22.   ShellExecute(hwnd, lpszOp, lpszFile, lpszParams, lpszDir, fsShowCmd)  
  23.  
  24. Parameter    Description
  25.     
  26.   hwnd      Identifies the parent window. This window receives any message boxes an application produces an error message box.[explanation correct?]
  27.   LpszOp      Points to a null-terminated string specifying the operation to perform. This string can be "open" or "print". If its parameter is NULL, "open" is the default value.
  28.   LpszFile      Points to a null-terminated string specifying the file to open.
  29.   LpszParams      Points to a null-terminated string specifying parameters passed to the application when the lpszFile parameter specifies an executable file. If lpszFile points to a string specifying a document file, this parameter is NULL.
  30.   LpszDir      Points to a null-terminated string specifying the default directory.
  31.   FsShowCmd      Specifies whether the application window is to be shown when the application is opened. This parameter can be one of the following values: 
  32.  
  33. 1      SW_NORMAL      Activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position (same as   SW_RESTORE  ).
  34. 2      SW_SHOWMINIMIZED      Activates a window and displays it as an icon.
  35. 3      SW_SHOWMAXIMIZED      Activates a window and displays it as a maximized window.
  36. 3      SW_MAXIMIZE      Activates a window and displays it as a maximized window.
  37. 4      SW_SHOWNOACTIVATE      Displays a window in its most recent size and position. The window that is currently active remains active.
  38. 5      SW_SHOW      Activates a window and displays it in its current size and position.
  39. 6      SW_MINIMIZE      Minimizes the specified window and activates the top-level window in the system's list.
  40. 7      SW_SHOWMINNOACTIVE      Displays a window as an icon. The window that is currently active remains active.
  41. 8      SW_SHOWNA      Displays a window in its current state. The window that is currently active remains active.
  42. 9      SW_RESTORE      Activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position (same as   SW_NORMAL  ).
  43.  
  44.